package ysu.sxm.ptjc.Service.Impl;

import org.springframework.stereotype.Service;
import ysu.sxm.ptjc.Dao.produceInfoDao;
import ysu.sxm.ptjc.Service.ProduceInfoService;
import ysu.sxm.ptjc.pojo.ProduceInfo;
import ysu.sxm.ptjc.pojo.UserInfo;

import javax.annotation.Resource;

@Service
public class ProduceInfoServiceImpl implements ProduceInfoService {
    @Resource
    produceInfoDao produceInfodao;

    @Override
    public ProduceInfo findOneByProduceIdAndLineid(Integer pruduceid, int lineid) {
        return produceInfodao.findOneByProduceIdAndLineid(pruduceid,lineid);
    }
    @Override
    public ProduceInfo findOneByProduceId(Integer pruduceid) {
        return produceInfodao.findOneByProduceId(pruduceid);
    }
    @Override
    public void insert(ProduceInfo produceInfo){

    }
}
